
<%= simple_form_for(@contact, url:partner_contacts_path(@contact.partner_id) ) do |f| %>
  <%= f.error_notification %>
  <%= f.error_notification message: f.object.errors[:base].to_sentence if f.object.errors[:base].present? %>


  <%= render 'layouts/flash_messages' %>

  <div class="row">
    <div class="col-md-4">
      <%= f.association :partner, label: '往来单位' %>
    </div>
  </div>

  <div class="row">
    <div class="col-md-4">
      <%= f.input :address, label: '发货地址' %>
    </div>
    <div class="col-md-4">
      <%= f.input :name, label: '联系人' %>
    </div>
    <div class="col-md-4">
      <%= f.input :cell, label: '手机' %>
    </div>
  </div>


  <div class="form-actions">
    <%= f.button :submit,'提交', class: 'btn btn-blue btn-xs' %>
  </div>

<% end %>

